/*
 * @Author: 江舟 jijiangzhou@recycloud.cn
 * @Date: 2024-04-10 15:59:34
 * @LastEditors: 江舟 jijiangzhou@recycloud.cn
 * @LastEditTime: 2024-07-22 15:02:13
 * @FilePath: \vite-project\src\components\common\SpecialAward.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const SpecialAward = ({ name = '精拆车', type = 1 }) => {
	const curName = type === 1 ? '精拆车' : type === 2 ? '粗拆车' : name;
	return (
		<div className="w-110px h-110px relative z-1">
			<div
				className={`${
					type === 1 ? 'text-primary border-primary ' : 'text-orange border-orange'
				} text-16px absolute z-3 border-1px border-solid rounded-2px px-32px py-4px rotate-30 z-2 top-50% left-50% -translate-x-50% -translate-y-50% origin-center  bg-white whitespace-nowrap`}>
				{curName}
			</div>
			<div
				className={`${
					type === 1 ? 'border-primary' : 'border-orange'
				} w-80px z-2 h-80px rounded-50% border-1px border-solid z-1 absolute top-50% left-50% -translate-x-50% -translate-y-50%`}></div>
		</div>
	);
};

export default SpecialAward;
